<?php
require_once '../include/common.inc.php';
if (!checkAdmin()) {
    header("LOCATION:index.php");
    exit;
}
$menu_index = 3;
$page_title = 'TABLA';
$guide_message = 'Media | Promotion | Add';

include_once('menu_list.php');
require_once PrintEot('a_header');

$date1=date("Y");
$date2=date("M");
$date3=date("d");

?>
<script language="javascript">
function checkForm()
{
	var subject=document.getElementById("subject");
	var detail=documemt.getElementById("detail");
	var pic=document.getElementById("picture");
	if(subject.value=="")
	{
		alert("Please enter the subject!");
		subject.focus();
		return false;
	}
	if(detail.value=="")
	{
		alert("Please enter the detail!");
		detail.focus();
		return false;
	}
	if(pic.value=="")
	{
		alert("Please upload a picture!");
		pic.focus();
		return false;
	}
	return true;
}
</script>
<script language="javascript" src="../css/date.js"></script>
<form action="m_promotion.php" method="post" enctype="multipart/form-data" name="form1" id="form1" encsupplier="multipart/form-data" onsubmit="return checkForm();">
  <table width="95%" border="0" align="center">
    <tr>
      <td align="right"><input name="action" type="hidden" id="action" value="add" /></td>
    </tr>
    <tr>
      <td valign="top"><table width="75%">
        <tr>
          <td >&nbsp;</td>
          <td align="center">English</td>
          <td align="center">Danish</td>
        </tr>
        <tr>
          <td width="128" >Subject :</td>
          <td width="732"><input name="subject" type="text" class="text" id="subject" size="60" /></td>
          <td width="732"><input name="subject_d" type="text" class="text" id="subject_d" size="60" /></td>
        </tr>
        <tr>
          <td width="128" >Detail :</td>
          <td><textarea name="detail" cols="60" rows="20" class="text" id="detail"></textarea></td>
          <td><textarea name="detail_d" cols="60" rows="20" class="text" id="detail_d"></textarea></td>
        </tr>
        <tr>
          <td width="128" > Picture:</td>
          <td><input name="picture" type="file"  class="text" id="picture" size="52"/>
          (186 x 103)</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="128" >Publish :</td>
          <td><label>
            <input name="publish" type="radio" value="1" checked="checked" />
            Yes
            <input type="radio" name="publish" value="0" />
            No</label></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="128" >Publish Date:</td>
          <td>            <input name="publishdate" class="text" type="text" id="publishdate" onFocus="CreateMonthView(this)" onBlur="DeleteMonthView(this)" readonly />          </td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <input type="hidden" name="action" value="add" />
          <td><input name="image" type="image" onclick="Redirect('m_promotion.php',1);return false;" src="../images/admin/bt_cancel.gif" />
                <input name="image" type="image"src="../images/admin/bt_save.gif" /></td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
    </tr>
  </table>
</form>
<?php require_once PrintEot('a_footer');?>
